## @file
#  @author Chelsey Batchelor <vadedeyes@gmail.com>
#  @author Abraham Escamilla <abraham.escamilla@live.com>
#  @author Curtis Hollibaugh <curtis.hollibaugh@gmail.com>
#  @copyright Copyright 2014 Chelsey Batchelor <vadedeyes@gmail.com>
#  @copyright Copyright 2014 Abraham Escamilla <abraham.escamilla@live.com>
#  @copyright Copyright 2014 Curtis Hollibaugh <curtis.hollibaugh@gmail.com>
#  Convenient front-end to the build script.
#  Unfortunately, test programs don't run correctly through SConstruct scripts.

# Build everything.
all:
	scons releaseProg
	scons debugProg
	scons testProg

# Build and run the program in release mode.
run:
	scons releaseProg
	./bin/release/server

# Build the program in debug mode and start gdb.
debug:
	scons debugProg
	gdb ./bin/debug/server

# Build and run the test suite.
check:
	scons testProg
	./bin/debug/tests

# Clean up
clean:
	scons --clean releaseProg
	scons --clean debugProg
	scons --clean testProg
